package com.csdj.service;

import com.csdj.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService {
    public boolean login(@Param("userName") String userName , @Param("passWord") String passWord,String ip,String data);

    /**
     * 注册
     * @param user
     * @return
     */
    public int insertUser(User user);

    public List<User> selectAll(@Param("userName") String userName , @Param("passWord") String passWord);

    public List<User> selectAllByRole(Integer role);

    public Integer updatePwd(String pwd,Integer id);

}
